package cn.bo.cloud.shorturl.web;


import cn.bo.cloud.common.redis.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

@RestController
@RequestMapping("/test")
public class TestController {

    @Value("${server.port}")
    String port;

    @Autowired
    private RedisService redisService;

    @RequestMapping("/uri1")
    public String test01(){

        return "shorturl-1-" + port;

    }

    @RequestMapping("/uri2")
    public String test02(){

        return "shorturl-02";
    }

}
